package com.richinfo.buddy.oauthserver.model.response;

import java.io.Serializable;

/**
* Created by WangXJ
* 2019-05-15 15:17
*/
public class JsonVo implements Serializable {

	/**
	 * 结果
	 */
	private boolean result;
	/**
	 * 返回结果码
	 */
	private Integer code;
	/**
	 * 成功的消息
	 */
	private String msg;
	/**
	 * 返回的数据
	 */
	private Object data;
	
	public JsonVo() {
		
	}

	public JsonVo(boolean result) {
		super();
		this.result = result;
	}

	public JsonVo(boolean result, Integer code) {
		super();
		this.result = result;
		this.code = code;
	}

	public JsonVo(boolean result, Integer code, String msg) {
		super();
		this.result = result;
		this.code = code;
		this.msg = msg;
	}

	public JsonVo(boolean result, Integer code, String msg, Object data) {
		super();
		this.result = result;
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	
	
	public JsonVo(boolean result, Object data) {
		super();
		this.result = result;
		this.data = data;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	
}
